% Tally.m
% 
% This code tallies the input data to produce a set that can be plotted
% 

function [talnums,talvalues] = tally(input_data)

    n = length(input_data);
    lowest = round(min(input_data)*10);
    highest = round(max(input_data)*10);
    talnums = zeros(1,(highest-lowest+1));
    for i = 1:1:n
        rnd_data(i) = round(input_data(i)*10);
        talnums(rnd_data(i)-lowest+1) = talnums(rnd_data(i)-lowest+1) +1;
    end
    
    talvalues = (lowest:1:highest)/10;
end
        
        